<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ include file="/page/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@ include file="/adapter/adapter-bootstrap.jsp" %>
<script type="text/javascript">

function  goBack(){
	window.history.back(-1);
}

</script>
</head>
<body>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">
                   查看交易转发渠道
		</h3>
	</div>
	<div class="panel-body">
		<form class="form-horizontal" role="form" id="channelinfo">
			<legend>渠道基本信息</legend>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="appId">应用标识</label>
				<div class="col-xs-4">
					<input class="form-control" id="appId" name="appId" type="text" readonly="readonly" value="${appChannelForward.appId}"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="forwardChannelId">渠道标识<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="forwardChannelId" name="forwardChannelId" type="text" value="${appChannelForward.forwardChannelId}" readonly="readonly"/>
				</div>			
				<label class="col-xs-2 control-label" for="forwardChannelName">渠道名称<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="forwardChannelName" name="forwardChannelName" type="text" value="${appChannelForward.forwardChannelName}" readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="forwardChannelType">渠道类型<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="forward_Channel_Type" name="forwardChannelType" type="hidden" value="${appChannelForward.forwardChannelType}"/>
					<select class="form-control" id="forwardChannelType" name="forwardChannelType" onclick="changeValue3(this.value)" readonly="readonly">
						<c:choose>
						<c:when test="${appChannelForward.forwardChannelType=='HTTP'}">
							<option value="HTTP" selected="selected">HTTP渠道</option>
						</c:when>
						<c:otherwise>
							<option value="HTTP">HTTP渠道</option>
						</c:otherwise>
						</c:choose>
						<c:choose>
						<c:when test="${appChannelForward.forwardChannelType=='TCP'}">
							<option value="TCP" selected="selected">TCP/IP渠道</option>
						</c:when>
						<c:otherwise>
							<option value="TCP">TCP/IP渠道</option>
						</c:otherwise>
						</c:choose>
					</select>
				</div>
				<label class="col-xs-2 control-label" for="httpStreamType">HTTP交互类型</label>
				<div class="col-xs-4">
					<input class="form-control" id="http_Stream_Type" name="httpStreamType" type="hidden" value="${appChannelForward.httpStreamType}"/>
					<select class="form-control" id="httpStreamType" name="httpStreamType" onclick="changeValue1(this.value)" readonly="readonly">
						<c:choose>
						<c:when test="${appChannelForward.httpStreamType=='01'}">
						<option value="01" selected="selected">HTTP/JSON</option>
						</c:when>
						<c:otherwise>
						<option value="01">HTTP/JSON</option>
						</c:otherwise>
						</c:choose>
						<c:choose>
						<c:when test="${appChannelForward.httpStreamType=='02'}">
						<option value="02" selected="selected">XML</option>
						</c:when>
						<c:otherwise>
						<option value="02">XML</option>
						</c:otherwise>
						</c:choose>
						<c:choose>
						<c:when test="${appChannelForward.httpStreamType=='03'}">
						<option value="03" selected="selected">KEYVALUE</option>
						</c:when>
						<c:otherwise>
						<option value="03">KEYVALUE</option>
						</c:otherwise>
						</c:choose><c:choose>
						<c:when test="${appChannelForward.httpStreamType=='04'}">
						<option value="04" selected="selected">KEYVALUE</option>
						</c:when>
						<c:otherwise>
						<option value="04">KEYVALUE</option>
						</c:otherwise>
						</c:choose>
					</select>
				</div>						
			</div>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="forwardChannelUrl">渠道通讯地址<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="forwardChannelUrl" name="forwardChannelUrl" type="text" value="${appChannelForward.forwardChannelUrl}" readonly="readonly"/>
				</div>
				<label class="col-xs-2 control-label" for="channelCharset">渠道报文字符编码<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="channelCharset" name="channelCharset" type="text" value="${appChannelForward.channelCharset}" readonly="readonly"/>
				</div>				
			</div>
			<legend>组/解包处理</legend>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="channelFormatType">渠道报文格式<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="channel_Format_Type" name="channelFormatType" type="hidden" value="${appChannelForward.channelFormatType}"/>
					<select class="form-control" id="channelFormatType" name="channelFormatType" onclick="changeValue2(this.value)" readonly="readonly">
						<c:choose>
						<c:when test="${appChannelForward.channelFormatType=='01'}">
						<option value="01" selected="selected">HTTP/JSON</option>
						</c:when>
						<c:otherwise>
						<option value="01">HTTP/JSON</option>
						</c:otherwise>
						</c:choose>
						<c:choose>
						<c:when test="${appChannelForward.channelFormatType=='02'}">
						<option value="02" selected="selected">XML</option>
						</c:when>
						<c:otherwise>
						<option value="02">XML</option>
						</c:otherwise>
						</c:choose>
						<c:choose>
						<c:when test="${appChannelForward.channelFormatType=='03'}">
						<option value="03" selected="selected">KEYVALUE</option>
						</c:when>
						<c:otherwise>
						<option value="03">KEYVALUE</option>
						</c:otherwise>
						</c:choose>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="channelHeadDefine">渠道报文头定义</label>
				<div class="col-xs-4">
					<input class="form-control" id="channelHeadDefine" name="channelHeadDefine" type="text" value="${appChannelForward.channelHeadDefine}" readonly="readonly"/>
				</div>
				<label class="col-xs-2 control-label" for="channelTradeCodeField">渠道约定交易码字段</label>
				<div class="col-xs-4">
					<input class="form-control" id="channelTradeCodeField" name="channelTradeCodeField" type="text" value="${appChannelForward.channelTradeCodeField}" readonly="readonly"/>
				</div>				
			</div>
			<div class="form-group">
				<label class="col-xs-2 control-label" for="PackProcessorClass">渠道组/解包处理类<font color="red">*</font></label>
				<div class="col-xs-4">
					<input class="form-control" id="PackProcessorClass" name="PackProcessorClass" type="text" value="${appChannelForward.packProcessorClass}" readonly="readonly"/>
				</div>
			</div>			
			<div class="form-group text-center">
				<button type="button" class="btn btn-default" onclick="goBack()">返回</button>
			</div>
		</form>
	</div>
</div>
</body>
</html>
